#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "autoload.h"
#include "Transport/querymanager.h"
#include "Logic/errordict.h"


namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    QTimer time;


public slots:
    void ProceedRoomsList();
    void ProceedGetUsers();
    void ProceedJoinRoom();
    void ProceedSendMessage();
    void ProceedGetMessages();
    void Failed(QString);
private slots:
    void on_cBRoomsList_currentIndexChanged(const QString &arg1);
    void on_pBJoinRoom_clicked();
    void on_pBSend_clicked();
};

#endif // MAINWINDOW_H
